package com.goodving.guli.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.goodving.guli.utility.C14231;
import com.goodving.guli.utility.CalenderData;
import com.goodving.guli.utility.LdlDate;

import java.util.ArrayList;

/**
 * Created by Administrator on 2015/11/16 0016.
 */
public class ViewPagerModel implements Parcelable {
    public static final Creator<ViewPagerModel> CREATOR;
    public ArrayList<CalenderData> mCalenderDataList;
    public int mDayCount;

    static {
        CREATOR = new C14231();
    }



    public ViewPagerModel() {
        this.mCalenderDataList = new ArrayList();
    }



    public void addCalenderData(int i, int i2, LdlDate LdlDate) {
        this.mCalenderDataList.add(0, new CalenderData(i, i2, LdlDate));
    }

    public ViewPagerModel(Parcel parcel) {
        this.mCalenderDataList = new ArrayList();
        this.mDayCount = parcel.readInt();
        this.mCalenderDataList = parcel.readArrayList(CalenderData.class.getClassLoader());
    }

    public int describeContents() {
        return 0;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.mDayCount);
        parcel.writeList(this.mCalenderDataList);
    }
}
